import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/duty_mgmt_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/duty_mgmt_entity.g.dart';

@JsonSerializable()
class DutyMgmtEntity {
	late int id;
	late int companyId;
	late String companyName;
	late int scheduleInfoId;
	late String planDutyPerson;
	late String planDutyPersonPhone;
	late String planDutyPersonPosition;
	late String planDutyPersonUnit;
	late String planDutyPersonDept;
	late String planDutyLeader;
	late String planDutyLeaderPhone;
	late int scheduleConfigId;
	late String scheduleName;
	late String actualDutyPerson;
	late String actualDutyPersonPhone;
	late String actualDutyPersonPosition;
	late String actualDutyPersonUnit;
	late String actualDutyPersonDept;
	late String actualDutyLeader;
	late String actualDutyLeaderPhone;
	late String onDutyTime;
	late String offDutyTime;
	late String weatherInfo;
	late int majorEventInfoId;
	late String floodPreventionInfo;
	late String createTime;

	DutyMgmtEntity();

	factory DutyMgmtEntity.fromJson(Map<String, dynamic> json) => $DutyMgmtEntityFromJson(json);

	Map<String, dynamic> toJson() => $DutyMgmtEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}